﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ElectrosLTD.Models
{
    public class FaultSubmitModel
    {
        public string username { get; set; }
        public string EncryptedPassword { get; set; }
        public string pin { get; set; }
        public string orderDetailsID { get; set; }
        public string productName { get; set; }
        public string Description { get; set; }
        public int categoryID { get; set; }
        public IEnumerable<SelectListItem> categoryList { get; set; }        

        public FaultSubmitModel()
        {
            categoryList = new SelectList(new FaultServ.FaultWCFClient().GetCategoryFault(), "ID", "Name");
        }
    }
}